import {
    ListDetailPageStackPaginationStore
} from "./ListDetailPageStackStore";
import {GoodsDetailResponse, QueryGoodsResponse} from "../apis/GoodsApi";
import {PAGE_START, Pageable} from "../utils/Page";


export const goodsPageStackStore = new ListDetailPageStackPaginationStore<QueryGoodsResponse, GoodsDetailResponse, number>(detail => ({
    ...detail,
    expressionPeriod: detail.expressionPeriod,
}), item => item.id, detail => detail.id, {pageable:new Pageable(PAGE_START, 15)})